﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ga="clr-namespace:Google.WebAnalytics;assembly=Google.WebAnalytics" xmlns:mwab="clr-namespace:Microsoft.WebAnalytics.Behaviors;assembly=Microsoft.WebAnalytics.Behaviors"
	x:Class="MSAF_OOB.MainPage"
	Width="640" Height="480">

	<Grid x:Name="LayoutRoot" Background="White">
		<i:Interaction.Behaviors>
			<ga:GoogleAnalytics WebPropertyId="UA-13164240-1"/>
		</i:Interaction.Behaviors>
		<Button Content="Show Image and track" HorizontalAlignment="Left" Height="40" Margin="8,128,0,0" VerticalAlignment="Top" Width="184" Click="Button_Click">
			<i:Interaction.Triggers>
				<i:EventTrigger EventName="Click">
					<mwab:TrackAction/>
				</i:EventTrigger>
			</i:Interaction.Triggers>
		</Button>
		<Image x:Name="Image" Margin="200,80,0,0" Height="96" VerticalAlignment="Top" HorizontalAlignment="Left" Width="120"/>
		<TextBlock HorizontalAlignment="Left" Margin="8,184,0,208" TextWrapping="Wrap" Text="Pressing this button should show an image and track via the MSAF to Google Analytics only when this application is on a website or it is running OOB with elevated trust.  If it is running OOB without elevated trust, an image should not show up." Width="296"/>
	</Grid>
</UserControl>